package net.csdn.business.kanban.api;

import net.csdn.business.kanban.api.service.KanbanViewService;
import net.csdn.business.kanban.common.domain.request.KanbanViewAddParam;
import net.csdn.business.kanban.feign.annotation.EnableApiFeignClients;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.HashMap;


@RunWith(SpringRunner.class)
@SpringBootTest(classes = {KanbanApiApplication.class},properties = {"spring.profiles.active=dev"})
@ActiveProfiles("dev")
public class KanbanApiApplicationTest {

    @Autowired
    KanbanViewService kanbanViewService;

//    public static void main(String[] args) {
//        SpringApplication.run(KanbanApiApplication.class, args);
//    }



    @Test
    public void addOrCopeKanbanView(){
        HashMap<String, Integer> map = kanbanViewService.getViewMap("66f611ddad126453cc758248");


        System.out.println(map);

    }


}
